/**
 * 普通文本输入框组件
 * */
import {ICellInputProps} from "./ICellInputProps";
import {Input} from "antd";

export function TextInput(props: ICellInputProps<string>) {
	const {value, onChange, disabled} = props;

	return (
		<Input disabled={disabled} value={value} onChange={(e) => {
			onChange(e.target.value)
		}}/>
	)
}
TextInput.defaultValue = '';